package cloudEntity.vo.dorm;

import cloudEntity.enumation.DormFloorEnum;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: Smart School
 * @ClassName SmartDormFloorVO
 * @description:
 * @author: 陈智博
 * @create: 2025-05-17 11:24
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class SmartDormFloorVO implements Serializable {

    //楼层主键id
    private Integer sysDormFloorId;
    //楼层层长UID
    private String sysDormFloorDutyPersonUid;
    //楼层层长名字
    private String sysDormFloorDutyPersonName;
    //楼层区域名字
    private String sysDormFloorDutyAreaName;
    //楼层区域
    private String sysDormFloorAreaType;
    //楼层创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sysDormFloorCreateTime;
    //楼层信息修改时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date sysDormFloorUpdateTime;

    public void setSysDormFloorAreaType(Integer sysDormFloorAreaType) {
        this.sysDormFloorAreaType = DormFloorEnum.getDescriptionByValue(sysDormFloorAreaType);
    }
}
